package pl.edu.agh.ki.neuralnetwork.layer;

import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import pl.edu.agh.ki.neuralnetwork.neurons.Neuron;

public class SimpleLayer<T extends Neuron> implements Layer<T>{
	List<T> list = new LinkedList<T>();
	public SimpleLayer(){
		
	}
	public SimpleLayer(Collection<T> values) {
		list.addAll(values);
	}

	public T get(int i) {
		return list.get(i);
	}

	public int size() {
		return list.size();
	}

	public Iterator<T> iterator() {
		return list.iterator();
	}

	public void add(T neuron) {
		list.add(neuron);
	}
	public List<Neuron> getNeuronsList() {
		return (List<Neuron>) list;
	}

}
